﻿<%@ Page Language="C#" MasterPageFile="~/Templates/Admin.master" AutoEventWireup="true" CodeFile="EditTrailer.aspx.cs" Inherits="Admin_Resource_Trailer_EditTrailer" Title="Untitled Page" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Assembly="Jalal.Library" Namespace="Jalal.Library.Web.Control" TagPrefix="ucc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MiddleArea" Runat="Server">
<table cellpadding="10" border="0" cellspacing="10" class="table_area">
    <tr>
        <td class="heading-text" colspan="2">
            Edit Trailer
        </td>
    </tr>
    <tr>
        <td colspan="2"><ucc:ResponseMessage ID="uccResponse" runat="server"></ucc:ResponseMessage></td>
    </tr>
    <tr>
        <td class="label-text">Title</td>
        <td>
            <asp:TextBox ID="tbxTitle" runat="server" Width="657px" MaxLength="1500"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="label-text">Game Title</td>
        <td>
            <asp:DropDownList ID="ddlGameTitle" runat="server" AutoPostBack="true" 
                OnSelectedIndexChanged="GameTitle_Changed" ></asp:DropDownList>
        </td>
    </tr>
    <asp:Panel ID="pnlAddGame" runat="server" Visible="false">
    <tr>
        <td>Add New Game</td>
        <td>
            <asp:TextBox ID="tbxNewGame" runat="server" MaxLength="200" ></asp:TextBox>
            &nbsp;
            <asp:Button ID="btnAddNewGame" runat="server" CssClass="button" OnClick="AddNewGame_Click" Text="Add new game" />
        </td>
    </tr>
    </asp:Panel>
    <tr>
        <td class="label-text">Description</td>
        <td align="center">
            <FCKeditorV2:FCKeditor ID="fckDescription" runat="server" Width="800px" 
                Height="200px"></FCKeditorV2:FCKeditor>
        </td>
    </tr>
    <tr>
        <td class="label-text">Trailer File</td>
        <td>
            <asp:FileUpload ID="fluTrailerFile" runat="server" />
        </td>
    </tr>
    <tr>
        <td class="label-text">Trailer File Download</td>
        <td>
            <asp:HyperLink ID="hlkDownloadTrailerFile" runat="server"></asp:HyperLink>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <asp:Image runat="server" ID="imgVideoThumbnail" AlternateText="Preview" />
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <asp:Image runat="server" ID="imgVideoPreview" AlternateText="Preview" />
        </td>
    </tr>
    <tr>
        <td class="label-text">Trailer Preview Image</td>
        <td>
            <ucc:ImageUploader runat="server" ID="uccImageUploader" TempFolder="~/Upload/Temp/" 
                UploadFolder="~/Upload/file/trailer/" />
        </td>
    </tr>
    <tr>
        <td class="label-text">Trailer Flash View Width</td>
        <td>
            Width: <asp:TextBox ID="tbxWidth" runat="server"></asp:TextBox>
            Height: <asp:TextBox ID="tbxHeight" runat="server"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td><asp:CheckBox ID="cbxActive" runat="server" Text="Active" /></td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td align="right">
            <asp:Button ID="btnUpdate" runat="server" OnClick="Update_Click"  
                Text="Update" CssClass="button" />
        </td>
    </tr>
</table>
</asp:Content>


